#include <QCoreApplication>
#include <QDebug>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    QString str = "125";
    bool ok;
    int hex = str.toInt(&ok,16);
    int dec = str.toInt(&ok,10);

    qDebug() << hex << dec;


    return a.exec();
}
